<?php

function __autoload($class) {
	require_once $class . '.php';
}

class Square extends Rectangle {

	public function  __construct($side) {
		parent::__construct($side,$side);
		$this->shapeType = "Square";
	}
	
	public function resize($newHeight, $newWidth) {
		if ( $newHeight == $newWidth )
			parent::resize($newWidth, $newHeight);
		else
			echo "Sorry bro but this is square!";
	}
	
}

$square = new Square(40);
// $square->resize(10, 10);
$square->printInfo();
echo $square->getArea();
echo $square->getShapeType();
?>